<!--
 * Copyright (c) 2013 The Chromium Authors. All rights reserved.  Use of this
 * source code is governed by a BSD-style license that can be found in the
 * LICENSE file.
-->
<!-- See chrome/browser/extensions/web_view_interactive_browsertest.cc (WebViewInteractiveTest, PointerLock) for documentation on this test. -->
<html><head>
  <style type="text/css">
    * {
      margin: 0px;
      padding: 0px;
    }
  </style>
</head>
<body>

  <div id="locktarget1">
    <button id='button1' style="height:50px; width:150px;">Pointer Lock Target1</button>
  </div>
  <div id="locktarget2">
    <button id='button2' style="height:50px; width:150px;">Send Clicked Message</button>
  </div>
  <div id="info">Info: </div>
  <br>To test this manually:<br>
  1. Without moving the cursor over the other button, click Pointer Lock Target1<br>
  2. With mouse now locked, attempt to move (not visible) cursor over the other button<br>
  3. Press escape to exit pointerlock<br>
  Test passes if mouse was properly locked, and "Info:" did not change to "fail".
<script src="guest.js"></script>
</body>
</html>
